
<!DOCTYPE html>
<html lang="en">
<head>
    <style>
        #phone{
            transition: border-color .3s,box-shadow .3s;
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 4px;
            width: 250px;
        }
        #phone:invalid{
            border-color: rgb(172, 37, 37);
            box-shadow: 0 0 2px  rgb(75, 185, 75);
        }
        #phone:focus{
            outline: none;
            border-color: rgb(70, 32, 32);
            box-shadow: 0 0 2px rgb(59, 34, 34);
        }
        button[type="submit"] {
            background-color: #4285f4;
            color: white;
            border: none;
            padding: 12px 30px;
            font-size: 18px;
            border-radius: 6px;
            cursor: pointer;
            margin-top: 15px;
            width: 270px;
            transition: background-color 0.3s;
        }
        button[type="submit"]:hover {
            background-color: #3367d6;
        }
        .form-container {
            max-width: 300px;
            margin: 50px auto;
            padding: 20px;
            border: 1px solid #eee;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
        }
    </style>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册页面</title>
</head>
<body>
    <div class="page-container">
        <div class="form-container">
            <form action="" method="get">
                <div class="form-group">
                    <label for="phone">手机号</label>
                    <input name="phone" type="tel"
                        id="phone"
                        pattern="^1[3-9]\d{9}$"
                        autocomplete="off" autofocus 
                        title="请输入正确的手机号"
                        placeholder="请输入手机号">
                </div>
                <button type="submit">注册</button>
            </form>
        </div>
    </div>
</body>
</html>
